<template> 
  <product-detail :is-edit='true' :view-mode='viewMode'></product-detail>
</template>
<script>
  import ProductDetail from './components/ProductDetail'
  export default {
    name: 'updateProduct',
    components: { ProductDetail },
    data() {
      return {
        viewMode: this.$route.query.viewMode === 'view'
      }
    }
  }
</script>
<style>
</style>
